home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / internet / sweeper / samples / olecon~1 / controls / circle / makefile < prev    next >
Makefile  |  1995-11-30  |  2KB  |  85 lines

  1. #=------------------------------------------------------------------------=
  2. # Makefile    [Circle]
  3. #=------------------------------------------------------------------------=
  4. # Copyright  1995  Microsoft Corporation.  All Rights Reserved.
  5. #
  6. # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. # PARTICULAR PURPOSE.
  10. #=--------------------------------------------------------------------------=
  11. #
  12. # builds a Circle Control
  13. #
  14.  
  15. TARGETOS=BOTH
  16. APPVER=4.0
  17.  
  18. MKDEP=mkdep
  19. MKTYPLIB=mktyplib
  20. VERSIONHDR=dwinvers.h
  21.  
  22. !include <win32.mak>
  23.  
  24. cflags=$(cflags) -Oi
  25.  
  26. !if "$(NODEBUG)"!=""
  27. CTL_LIBS=$(winlibs) ..\..\lib\CTLFWR32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
  28. !else
  29. cdebug=$(cdebug) -DDEBUG
  30. CTL_LIBS=$(winlibs) ..\..\lib\CTLFWD32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
  31. !endif
  32.  
  33. CONTROLNAME=Circle
  34. OBJS=Guids.Obj\
  35.      $(CONTROLNAME).Obj\
  36.      $(CONTROLNAME)Ctl.Obj\
  37.      $(CONTROLNAME).res
  38.  
  39. all: dep $(CONTROLNAME).OCX
  40.  
  41. $(CONTROLNAME).Ocx: $(VERSIONHDR) $(CONTROLNAME).TLB $(OBJS) makefile
  42.     $(link) $(lflags) $(ldebug) -DLL -entry:DllMain$(DLLENTRY) $(OBJS) -out:$*.ocx $(CTL_LIBS) -def:$(CONTROLNAME).def
  43.  
  44. .cpp.obj:
  45.     $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
  46.  
  47. .c.obj:
  48.     $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
  49.  
  50. $(CONTROLNAME).TLB : $(CONTROLNAME).ODL
  51.     $(MKTYPLIB) $(_MKTYPLIBFLAGS) -nologo -cpp_opt "/C /E /D__MKTYPLIB__ -nologo" -h $(CONTROLNAME)Interfaces.H -o Errors.LOG -tlb $(CONTROLNAME).TLB $(CONTROLNAME).ODL
  52.  
  53. $(CONTROLNAME).res : $(CONTROLNAME).TLB $(CONTROLNAME).RC
  54.     $(rc) $(rcflags) -fo $(CONTROLNAME).Res $(CONTROLNAME).Rc
  55.  
  56. Dep: $(CONTROLNAME).TLB
  57.     @echo Generating Dependancies
  58.     $(MKDEP) -n -P ./ -I. -I..\..\Include -s .obj *.c* > dep.mak
  59.  
  60. $(VERSIONHDR):
  61.     @echo You should edit this file for your own version information
  62.     copy ..\..\framewrk\$(VERSIONHDR)
  63.     
  64.  
  65. clean: 
  66.     del *.obj
  67.     del *.ocx
  68.     del *.tlb
  69.     del *.res
  70.     del *.exp
  71.     del *.mak
  72.     del *.log
  73.     del *.lib
  74.     del $(CONTROLNAME)Interfaces.H
  75.     del dwinvers.h
  76.  
  77. #=----------------------------=
  78. # Include Dependency Makefile 
  79. #
  80. !IF EXIST(dep.mak)
  81. !include dep.mak
  82. !ENDIF
  83.  
  84.  
  85.